package com.ruoyi.aitcommon.vo;

import com.alibaba.fastjson.JSONArray;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class PageDataVO {
    private PageInfoVO pageInfo;
    private List<Map<String, Object>> rows;

    public void setRows(JSONArray rows) {
        List<Map<String, Object>> rows1=new ArrayList<>();
        for(Object row:rows){
            rows1.add((Map<String, Object>) row);
        }
        this.rows = rows1;
    }
    public void setRows(List<Map<String,Object>> rows) {
        this.rows = rows;
    }
}
